DEPLOY_DIR=/data/
APP_NAME=admin
ps -ef|grep ${APP_NAME}.jar|grep -v grep|grep -v kill|awk '{print $2}' |xargs kill -9
echo 'Stop Success!'

nohup java -Xmx512m -jar ${DEPLOY_DIR}/${APP_NAME}.jar --spring.profiles.active=pro > /dev/null 2>&1 &
echo $!
echo Start Success!
tail -fn100 /logs/${APP_NAME}/info.log
